const C = require('memory-cache')

module.exports = {
  get: id => {
    return C.get('users').find(u => u.id == id)
  },
  get_by_user: user => {
    return C.get('users').find(u => u.user == user)
  }
}